package nc.ui.med.bd.mcm.position;

import nc.ui.trade.bsdelegate.BDBusinessDelegator;
import nc.ui.trade.business.HYPubBO_Client;
import nc.vo.pub.SuperVO;

public class ClientBusinessDelegator extends BDBusinessDelegator {
	
	public ClientBusinessDelegator() {
		super();
	}
	
	@Override
	public SuperVO[] queryHeadAllData(Class headClass, String strBillType,
			String strWhere) throws Exception {
		String where = "";
		if (strWhere != null && strWhere.length() > 0) {
			where = " pk_position in (select distinct mcm_position.pk_position from  mcm_position  ,mcm_position_b  "
					+ " where mcm_position.pk_position =  mcm_position_b .pk_position and  isnull( mcm_position.dr,0)=0 and isnull(mcm_position_b .dr,0) = 0 "
					+ " and  " + strWhere + ") ";
		}
		SuperVO[] vo = HYPubBO_Client.queryByCondition(headClass, where);
		return vo;
	}

}
